package com.jichangxiu.system.entity.dto.add;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jichangxiu.system.entity.bo.SysTenantBo;
import com.jichangxiu.system.entity.po.SysTenant;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * AddSysTenant:
 *
 * @author JiChangXiu
 * @create 2024-06-28 13:44:49
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Schema(description = "系统租户表")
@AutoMappers({
        @AutoMapper(target = SysTenant.class, reverseConvertGenerate = false),
        @AutoMapper(target = SysTenantBo.class, reverseConvertGenerate = false)
})
public class AddSysTenant implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编码
     */
    @Schema(description = "编码")
    private String no;

    /**
     * 标识
     */
    @Schema(description = "标识")
    private String code;

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    private String phone;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    private String email;

    /**
     * Logo
     */
    @Schema(description = "Logo")
    private String logo;

    /**
     * 是否平台级租户
     */
    @Schema(description = "是否平台级租户")
    private Boolean platform;

    /**
     * 负责人
     */
    @Schema(description = "负责人")
    private String userId;

    /**
     * 源ID
     */
    @Schema(description = "源ID")
    private String sourceId;

    /**
     * 租户系统开始时间
     */
    @Schema(description = "租户系统开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    /**
     * 租户系统到期时间
     */
    @Schema(description = "租户系统到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    /**
     * 顺序
     */
    @Schema(description = "顺序")
    private BigDecimal sort;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 是否启用
     */
    @Schema(description = "是否启用")
    private Boolean enabled;

    /**
     * 启用者
     */
    @Schema(description = "启用者")
    private String enabledBy;

    /**
     * 启用时间
     */
    @Schema(description = "启用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date enabledTime;

    /**
     * 菜单ID列表
     */
    @Schema(description = "菜单ID列表")
    private List<String> menuIdList;

    /**
     * 新增部门
     */
    @Schema(description = "新增部门")
    private AddSysDept addSysDept;

    /**
     * 新增岗位
     */
    @Schema(description = "新增岗位")
    private AddSysPost addSysPost;

    /**
     * 新增角色
     */
    @Schema(description = "新增角色")
    private AddSysRole addSysRole;

    /**
     * 新增用户
     */
    @Schema(description = "新增用户")
    private AddSysUser addSysUser;

}